package com.zzl.finance.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzl.finance.order.entity.InvoiceTitleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author hyt
 * @date 2021-10-13
 */
@Mapper
public interface InvoiceTitleDao extends BaseMapper<InvoiceTitleEntity> {

    /**
     * 获取企业的默认发票抬头
     * @param enterpriseId 企业id
     * @return 发票抬头信息
     */
    InvoiceTitleEntity findOneByDefaultFlag(@Param("enterpriseId") String enterpriseId);

}